package org.insia.smartposse.metier;

import java.io.Serializable;

import org.insia.smartposse.metier.webservice.LightSkill;


/**
 * Business class for skill.
 * 
 * @author sok hout
 * 
 */
public class Skill 
implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8928776036653593487L;
	private long _id = -1L;
	private SkillCategory _category;
	private String _label;

	/**
	 * Empty constructor.
	 *
	 */
	public Skill() {
	}

	
	/**
	 * Getter for the id.
	 * @return the id.
	 */
	public long getId() {
		return _id;
	}

	/**
	 * Setter for the id.
	 * @param id the id to set.
	 */
	public void setId(long id) {
		this._id = id;
	}

	/**
	 * Getter for the label.
	 * @return the label.
	 */
	public String getLabel() {
		return _label;
	}

	/**
	 * Setter for the label.
	 * @param label the label to set.
	 */
	public void setLabel(String label) {
		this._label = label;
	}

	/**
	 * Getter for the category of this skill.
	 * @return the category.
	 */
	public SkillCategory getCategory() {
		return _category;
	}

	/**
	 * Setter for this skill's category.
	 * @param category the category to set.
	 */
	public void setCategory(SkillCategory category) {
		this._category = category;
	}

	/**
	 * 
	 * @return lcatet the webservice Skill representation
	 */
	public LightSkill setLight() {
		LightSkill lskill = new LightSkill(this);
		return lskill;
	}
	
}
